package com.houtai.bean.dto.avtivity.works;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
@ApiModel(value="添加作品所需参数", description="添加作品所需参数")
public class TdActivityWorksInsertDto {

    @NotEmpty(message = "作品名称不能为空")
    @Length(max = 20, message = "作品名称最多20个字符")
    @ApiModelProperty(value="作品名称", name="works_name")
    private String works_name;

    @NotNull(message = "类型id不能为null")
    @ApiModelProperty(value="类型id", name="works_type")
    private int works_type;

    @NotNull(message = "活动id不能为null")
    @ApiModelProperty(value="活动id(单独作品时活动id传0)", name="activity_id")
    private int activity_id;

    @NotEmpty(message = "标签不能为空")
    @Length(max = 10, message = "标签最多10个字符")
    @ApiModelProperty(value="标签 ", name="works_label")
    private String works_label;

    @NotEmpty(message = "封面不能为空")
    @ApiModelProperty(value="封面", name="works_img")
    private String works_img;

    @NotNull(message = "视频不能为null")
    @ApiModelProperty(value="视频 可为空字符串", name="works_video")
    private String works_video;

    @NotEmpty(message = "内容不能为空")
    @Length(max = 50000, message = "内容最多50000个字符")
    @ApiModelProperty(value="内容", name="works_content")
    private String works_content;


    public String getWorks_name() {
        return works_name;
    }

    public void setWorks_name(String works_name) {
        this.works_name = works_name;
    }

    public int getWorks_type() {
        return works_type;
    }

    public void setWorks_type(int works_type) {
        this.works_type = works_type;
    }

    public int getActivity_id() {
        return activity_id;
    }

    public void setActivity_id(int activity_id) {
        this.activity_id = activity_id;
    }

    public String getWorks_label() {
        return works_label;
    }

    public void setWorks_label(String works_label) {
        this.works_label = works_label;
    }

    public String getWorks_video() {
        return works_video;
    }

    public void setWorks_video(String works_video) {
        this.works_video = works_video;
    }

    public String getWorks_img() {
        return works_img;
    }

    public void setWorks_img(String works_img) {
        this.works_img = works_img;
    }

    public String getWorks_content() {
        return works_content;
    }

    public void setWorks_content(String works_content) {
        this.works_content = works_content;
    }
}
